aio: store event at final iocb_put()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Mar 2019 00:49:55 +0000 (19:49 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commit64b8665c565371e41520c689dc3f0f774541ceff
tree72ec79e30d4d2788574a81ddc2f2bcd478dbebe7
parent1a97fbbd36528b52133f79ecaf77bf6c5c371f3f
aio: store event at final iocb_put()

commit 2bb874c0d873d13bd9b9b9c6d7b7c4edab18c8b4 upstream.

Instead of having aio_complete() set ->ki_res.{res,res2}, do that
explicitly in its callers, drop the reference (as aio_complete()
used to do) and delay the rest until the final iocb_put().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name 0013-aio-store-event-at-final-iocb_put.patch
fs/aio.c